package com.cx.simpleweb;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.AutoConfigureOrder;
import org.springframework.core.annotation.Order;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author cxx
 * @create 2020-11-10 16:04
 **/
@Component
public class A implements I{

    @Autowired
    private Z z;

    public A() {
        System.out.println ("AAAAAAAAA");
    }

    @Override
    @Transactional(rollbackFor = Exception.class)
//    @Async
    public void test1(){
        System.out.println ("test1");
    }
}
